﻿
using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.Base
{
    [SugarTable]
    public class Attachment
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 关联业务ID
        /// </summary>
        public Guid BusinessId { get; set; }

        /// <summary>
        /// 文件URL
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public Status Status { get; set; } = Status.Enable;

        /// <summary>
        /// 创建人ID
        /// </summary>
        public Guid CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人ID
        /// </summary>
        public Guid? UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedAt { get; set; }
    }
}
